import type { MenuProps } from 'antd';
type MenuItem = Required<MenuProps>['items'][number];

function getItem( label: React.ReactNode, key: React.Key, icon?: React.ReactNode,  children? : MenuItem[], ): MenuItem {
    return {
      key,
      icon,
      children, 
      label,
    } as MenuItem;
  }

  export default getItem